package com.itheima.objectstream;

import java.io.*;

public class OutDemo {

    public static void main(String[] args) throws IOException {

        Student student = new Student("胡卫东",42);

        ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream("day11\\obj.txt"));

        objectOutputStream.writeObject(student);

        objectOutputStream.close();

    }
}
